#ifndef PIPELINEFORM_H
#define PIPELINEFORM_H

#include <QDialog>
#include "treemodel.h"
#include "lineloop.h"
#include "linelooppassport.h"

class QSqlQueryModel;

namespace Ui {
    class PipeLineForm;
}

class PipeLineForm : public QDialog
{
    Q_OBJECT
public slots:
    void changeEditMode();
    void selectLineLoop(QModelIndex idx);
    void submit();
    void revert();
public:
    void loadData(const QString theFeatureID);
    explicit PipeLineForm(QWidget *parent = 0);
    ~PipeLineForm();
private:
    Ui::PipeLineForm *ui;
    QSqlQueryModel *statusModel, *categoryModel, *historyModel, *mountingModel;
    QString featureID;
    TreeModel *model;
    LineLoop *lineLoop;
    LineLoopPassport *mLineLoopPassport;
};

#endif // PIPELINEFORM_H
